package User;

import IOperation.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-01-02
 * Time: 20:14
 */
public class NormalUser extends User{
    public NormalUser(String name) {
        super(name);
       operations=new Operation[]{
               new ExitOperation(),
               new BorrowOperation(),
               new FindOperation(),
               new ReturnOperation(),
               new ShowOperation()
       };
    }

    public int menu() {
        System.out.println("*****普通用户界面*****");
        System.out.println("*****0.退出系统****");
        System.out.println("*****1.借阅图书****");
        System.out.println("*****2.查找图书****");
        System.out.println("*****3.归还图书****");
        System.out.println("*****4.显示图书****");
        System.out.println("请输入你的操作: ");
        Scanner scanner=new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;
    }
}
